import {btnDatas} from '@/views/center/buyer/specify/detail/headData'
let MixDetail={
  data(){
    return {
      id:"",
      urls:{
        list:"",//详情
        cancel:"",//取消
      },
      detailData:{}
    }
  },
  methods: {
    /**
     * 获取详情
     */
    getDetail(){
      let path = _g.getRouterPath(this).replace(/\/detail/,'');
      this.urls = new Map(btnDatas).get(path).urls
      this.id = this.$router.history.current.query.id||1
      _g.apiPost(this.urls.list,{id:this.id}).then(res=>{
        this.detailData=res.data
      })
    }
  },
}

export default MixDetail